Skip to content

Potential fix for code scanning alert no. 1: Workflow does not contain permissions#38

Merged
NeftaliYagua merged 1 commit into
masterfrom
alert-autofix-1
May 8, 2025
Merged

Potential fix for code scanning alert no. 1: Workflow does not contain permissions#38
NeftaliYagua merged 1 commit into
masterfrom
alert-autofix-1

Conversation

@NeftaliYagua
Copy link
Copy Markdown
Member

Potential fix for https://github.com/Coderic/org.coderic.bank.endpoint/security/code-scanning/1

To fix the issue, we will add a permissions block at the root level of the workflow file. This block will specify the least privileges required for the workflow to function correctly. Since the workflow only checks out code and runs tests, it likely only needs contents: read permission. This ensures that the workflow adheres to the principle of least privilege and avoids granting unnecessary write permissions.


Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…n permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@NeftaliYagua NeftaliYagua marked this pull request as ready for review May 8, 2025 13:12
@NeftaliYagua NeftaliYagua merged commit 26c3d62 into master May 8, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant